package com.boarsoft.flow.demo.make;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.boarsoft.flow.core.bean.TransactionHandler;

public class FakeTxHandlerImpl implements TransactionHandler<Object> {
	private static final Logger log = LoggerFactory.getLogger(FakeTxHandlerImpl.class);

	@Override
	public Object begin(Object data) {
		log.info("Begin transaction");
		return data;
	}

	@Override
	public void commit(Object tx) {
		log.info("Commit transaction");
	}

	@Override
	public void rollback(Object tx) {
		log.info("Rollback transaction");
	}
}
